package master.ghrm.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Version;

@Entity
public class EvaluationQuestionType extends AbstractBaseEntity {
	private static final long serialVersionUID = 1L;
	/**
	 * Maximum length for <code>name</code>.
	 */
	public static final int LENGTH_NAME = 80;

	@Version
	private Long version;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "question_type_id")
	private Integer questionTypeId;

	@Column(nullable = false, length = LENGTH_NAME)
	private String name;

	@Override
	protected String[] getExcludedAttributes() {
		return new String[] {};
	}

	/**
	 * @return the version
	 */
	public Long getVersion() {
		return this.version;
	}

	/**
	 * @param aVersion the version to set
	 */
	public void setVersion(Long aVersion) {
		this.version = aVersion;
	}

	/**
	 * @return the questionTypeId
	 */
	public Integer getQuestionTypeId() {
		return this.questionTypeId;
	}

	/**
	 * @param aQuestionTypeId the questionTypeId to set
	 */
	public void setQuestionTypeId(Integer aQuestionTypeId) {
		this.questionTypeId = aQuestionTypeId;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return this.name;
	}

	/**
	 * @param aName the name to set
	 */
	public void setName(String aName) {
		this.name = aName;
	}

}
